package com.my.entity;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

@Entity
public class UserInfoEntity {
	
	@Id
	private ObjectId id;			//ID
	private String username; 		// 用户名
	private String password; 		// 密码
	private String email; 			// 电子邮箱
	private String question; 		// 提问题(用于找回密码)
	private String reply; 			// 回答问题
	private String createDate;		// 创建日期

	public UserInfoEntity(){}
	
	public UserInfoEntity(String username, String password, String email,
			String question, String reply, String createDate) {
		super();
		this.username = username;
		this.password = password;
		this.email = email;
		this.question = question;
		this.reply = reply;
		this.createDate = createDate;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getReply() {
		return reply;
	}

	public void setReply(String reply) {
		this.reply = reply;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public ObjectId getId() {
		return id;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

}
